home *** CD-ROM | disk | FTP | other *** search
/ PC Open 107 / PC Open 107 CD 1.bin / CD1 / INTERNET / Abilon / InstallAB.exe / Style / Forum (Brown).xsl < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-09  |  2.9 KB  |  73 lines

  1. <?xml version="1.0"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3. <xsl:output method="xml" omit-xml-declaration="yes"/>
  4. <xsl:variable name="common-styles">
  5. <style type="text/css">
  6. body        { font-family:Verdana;Arial; font-size:11pt; margin:0pt; padding:0pt; }
  7. table.header {font-family:Verdana;Arial;color:#000000;cell-padding:2pt;background:#ECE9D8;width:100%;height:30px;border-bottom: 1px solid #999999;}
  8.  
  9. .headercolumns {font-family:Verdana;Arial;color:#000000;cell-padding:0pt;background:#ECE9D8;width:100%;height:30px;border: 0px;}
  10. div.footer { color: gray; font-size: x-small; text-align: right; margin-top: 2px;}
  11. .title        {font-size:9pt;font-weight: normal;}
  12. .date        { font-size:9pt; }
  13. div.content { font-family:Verdana, Arial;font-size:10pt;margin:10pt;padding:5pt;  }
  14. td.title a:link      { color:#0000CC;text-decoration:none;font-weight:normal; }
  15. td.title a:visited   { color:#0000CC;text-decoration:none; }
  16. td.title a:hover         { color:#0000FF;text-decoration:underline;font-weight:normal; }
  17. a:link      { color:#0000CC;text-decoration:none;font-weight:normal; }
  18. a:visited   {color:#0000CC;text-decoration:none;}
  19. a:hover        { color:#0000FF;text-decoration:underline;font-weight:normal; }
  20. </style>
  21. </xsl:variable>
  22. <xsl:template match="//record">
  23.     <html>
  24.     <head>
  25.         <title>News Item</title>
  26.         <xsl:copy-of select="$common-styles"/>
  27.     </head>
  28.     <body>
  29.     <table class="header">
  30.       <tr>
  31.         <td width="100%" align="right">
  32.           <table class="headercolumns" border="0" cellpadding="0" cellspacing="0">
  33.             <tr>
  34.               <td class="title" width="49%" align="left" valign="top">
  35.                 <strong>From: </strong>
  36.                 <xsl:value-of select="feed/title" disable-output-escaping="yes"/>
  37.             </td>
  38.               <td class="date" width="51%" valign="top" align="right">
  39.                 <b><xsl:value-of select="item/published" disable-output-escaping="yes"/></b>
  40.               </td>
  41.             </tr>
  42.             <tr>
  43.               <td colspan="2" class="title" align="left" valign="bottom">
  44.                 <strong>Subject: </strong>
  45.                 <a href="{item/link}"><xsl:value-of select="item/title" disable-output-escaping="yes"/></a>
  46.               </td>
  47.             </tr>
  48.           </table>
  49.         </td>
  50.       </tr>
  51.     </table>
  52.  
  53.     <div class="content">
  54.         <xsl:value-of select="item/content" disable-output-escaping="yes"/>
  55.     <br/><a href="{item/link}">Read on...</a></div>
  56.         <div class="footer">
  57.         <xsl:if test="item/comments">
  58.             <xsl:variable name="commentlink" select="item/comments/@link"/>
  59.             <a href="{$commentlink}"><xsl:value-of select="item/comments/@text"/></a>
  60.         </xsl:if>            
  61.         <xsl:if test="item/reply">
  62.             <xsl:variable name="replylink" select="item/reply/@link"/>
  63.             <xsl:text> </xsl:text><a href="{$replylink}"><xsl:value-of select="item/reply/@text"/></a>
  64.         </xsl:if>            
  65.         </div>    
  66.     </body>
  67.     </html>
  68. </xsl:template>
  69.  
  70. </xsl:stylesheet>
  71.  
  72.  
  73.